<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: BehindBridge类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_behind_bridge-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">BehindBridge类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>后景桥，提供碰撞逻辑但不显示  
 <a href="class_behind_bridge.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_behind_bridge_8h_source.html">BehindBridge.h</a>&gt;</code></p>
<div class="dynheader">
类 BehindBridge 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_behind_bridge__inherit__graph.png" border="0" usemap="#a_behind_bridge_inherit__map" alt="Inheritance graph"/></div>
<map name="a_behind_bridge_inherit__map" id="a_behind_bridge_inherit__map">
<area shape="rect" title="后景桥，提供碰撞逻辑但不显示" alt="" coords="5,80,104,107"/>
<area shape="rect" href="class_base_object.html" title="场景内物体基类" alt="" coords="9,5,100,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<div class="dynheader">
BehindBridge 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="class_behind_bridge__coll__graph.png" border="0" usemap="#a_behind_bridge_coll__map" alt="Collaboration graph"/></div>
<map name="a_behind_bridge_coll__map" id="a_behind_bridge_coll__map">
<area shape="rect" title="后景桥，提供碰撞逻辑但不显示" alt="" coords="5,171,104,197"/>
<area shape="rect" href="class_base_object.html" title="场景内物体基类" alt="" coords="9,95,100,121"/>
<area shape="rect" href="class_point.html" title="二维点" alt="" coords="29,5,81,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a34974674b78c06511b03fadf76bb5593"><td class="memItemLeft" align="right" valign="top"><a id="a34974674b78c06511b03fadf76bb5593" name="a34974674b78c06511b03fadf76bb5593"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BehindBridge</b> (const <a class="el" href="class_point.html">Point</a> &amp;<a class="el" href="class_base_object.html#ad2b90ee5793b658f19945f5ed8252bfe">pos</a>, double <a class="el" href="class_base_object.html#a345ddf24dd642359b75ec9e8cbec24b2">width</a>, double height)</td></tr>
<tr class="separator:a34974674b78c06511b03fadf76bb5593"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0cae3abdfc36750b7dca3843f904167"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_behind_bridge.html#aa0cae3abdfc36750b7dca3843f904167">getClassName</a> () override</td></tr>
<tr class="memdesc:aa0cae3abdfc36750b7dca3843f904167"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取类名  <a href="class_behind_bridge.html#aa0cae3abdfc36750b7dca3843f904167">更多...</a><br /></td></tr>
<tr class="separator:aa0cae3abdfc36750b7dca3843f904167"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae718c374bfaf9b187fb144e881d50044"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_behind_bridge.html#ae718c374bfaf9b187fb144e881d50044">draw</a> (const <a class="el" href="class_point.html">Point</a> &amp;show_pos, float window_width, float window_height) const override</td></tr>
<tr class="memdesc:ae718c374bfaf9b187fb144e881d50044"><td class="mdescLeft">&#160;</td><td class="mdescRight">供前端使用的绘制函数  <a href="class_behind_bridge.html#ae718c374bfaf9b187fb144e881d50044">更多...</a><br /></td></tr>
<tr class="separator:ae718c374bfaf9b187fb144e881d50044"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_base_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_base_object')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_base_object.html">BaseObject</a></td></tr>
<tr class="memitem:a7e176d1d960045fc200077eca43965e5 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a7e176d1d960045fc200077eca43965e5">getPos</a> () const</td></tr>
<tr class="memdesc:a7e176d1d960045fc200077eca43965e5 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体位置  <a href="class_base_object.html#a7e176d1d960045fc200077eca43965e5">更多...</a><br /></td></tr>
<tr class="separator:a7e176d1d960045fc200077eca43965e5 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85204616ebfb2ba858abde26f203d359 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a85204616ebfb2ba858abde26f203d359">setPos</a> (const <a class="el" href="class_point.html">Point</a> &amp;pos_)</td></tr>
<tr class="separator:a85204616ebfb2ba858abde26f203d359 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35b5ede527bbd73c579d8bdbfb90bee9 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a35b5ede527bbd73c579d8bdbfb90bee9">isFixed</a> () const</td></tr>
<tr class="memdesc:a35b5ede527bbd73c579d8bdbfb90bee9 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体是否固定  <a href="class_base_object.html#a35b5ede527bbd73c579d8bdbfb90bee9">更多...</a><br /></td></tr>
<tr class="separator:a35b5ede527bbd73c579d8bdbfb90bee9 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1baacb32f3f4e0481a46266fc3dfbbfc inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a1baacb32f3f4e0481a46266fc3dfbbfc">setFixed</a> (bool fixed_)</td></tr>
<tr class="memdesc:a1baacb32f3f4e0481a46266fc3dfbbfc inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体是否固定  <a href="class_base_object.html#a1baacb32f3f4e0481a46266fc3dfbbfc">更多...</a><br /></td></tr>
<tr class="separator:a1baacb32f3f4e0481a46266fc3dfbbfc inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6b51f6eda42de15bbcf9b0c4fb1db51 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#aa6b51f6eda42de15bbcf9b0c4fb1db51">getWidth</a> () const</td></tr>
<tr class="memdesc:aa6b51f6eda42de15bbcf9b0c4fb1db51 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体宽度，单位:像素  <a href="class_base_object.html#aa6b51f6eda42de15bbcf9b0c4fb1db51">更多...</a><br /></td></tr>
<tr class="separator:aa6b51f6eda42de15bbcf9b0c4fb1db51 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a47258298e3f5d0c63a516c11249d5e inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a3a47258298e3f5d0c63a516c11249d5e">setWidth</a> (double width_)</td></tr>
<tr class="memdesc:a3a47258298e3f5d0c63a516c11249d5e inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体宽度，单位：像素  <a href="class_base_object.html#a3a47258298e3f5d0c63a516c11249d5e">更多...</a><br /></td></tr>
<tr class="separator:a3a47258298e3f5d0c63a516c11249d5e inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90bc7e758fa62359c6e0784415bf3095 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a90bc7e758fa62359c6e0784415bf3095">getHeight</a> () const</td></tr>
<tr class="memdesc:a90bc7e758fa62359c6e0784415bf3095 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体高度，单位：像素  <a href="class_base_object.html#a90bc7e758fa62359c6e0784415bf3095">更多...</a><br /></td></tr>
<tr class="separator:a90bc7e758fa62359c6e0784415bf3095 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad748705eb9028d3f81c76828d072ac6d inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#ad748705eb9028d3f81c76828d072ac6d">setHeight</a> (double height_)</td></tr>
<tr class="memdesc:ad748705eb9028d3f81c76828d072ac6d inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体高度，单位：像素  <a href="class_base_object.html#ad748705eb9028d3f81c76828d072ac6d">更多...</a><br /></td></tr>
<tr class="separator:ad748705eb9028d3f81c76828d072ac6d inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae27aa8d7730816c3b92844fa52e4a002 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#ae27aa8d7730816c3b92844fa52e4a002">isCanGoThrough</a> () const</td></tr>
<tr class="memdesc:ae27aa8d7730816c3b92844fa52e4a002 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体是否可以穿过  <a href="class_base_object.html#ae27aa8d7730816c3b92844fa52e4a002">更多...</a><br /></td></tr>
<tr class="separator:ae27aa8d7730816c3b92844fa52e4a002 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d5f8d904178f4af4e3ded503d364f94 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a5d5f8d904178f4af4e3ded503d364f94">setCanGoThrough</a> (bool canGoThrough)</td></tr>
<tr class="memdesc:a5d5f8d904178f4af4e3ded503d364f94 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体是否可以穿过  <a href="class_base_object.html#a5d5f8d904178f4af4e3ded503d364f94">更多...</a><br /></td></tr>
<tr class="separator:a5d5f8d904178f4af4e3ded503d364f94 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11bb79be3c9bbe90709cbdcffa75d91e inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a11bb79be3c9bbe90709cbdcffa75d91e">isCanClimb</a> () const</td></tr>
<tr class="memdesc:a11bb79be3c9bbe90709cbdcffa75d91e inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体是否可以攀爬，此属性必须在可以穿过时启用才有效  <a href="class_base_object.html#a11bb79be3c9bbe90709cbdcffa75d91e">更多...</a><br /></td></tr>
<tr class="separator:a11bb79be3c9bbe90709cbdcffa75d91e inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8782191bbcc265334390051b3efacbe inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#ad8782191bbcc265334390051b3efacbe">setCanClimb</a> (bool canClimb)</td></tr>
<tr class="memdesc:ad8782191bbcc265334390051b3efacbe inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体是否可以攀爬，此属性必须在可以穿过时启用才有效  <a href="class_base_object.html#ad8782191bbcc265334390051b3efacbe">更多...</a><br /></td></tr>
<tr class="separator:ad8782191bbcc265334390051b3efacbe inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b678f52f9f6e06c237a22715fa4331e inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a0b678f52f9f6e06c237a22715fa4331e">getMoveSpeed</a> () const</td></tr>
<tr class="memdesc:a0b678f52f9f6e06c237a22715fa4331e inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体的移动速度  <a href="class_base_object.html#a0b678f52f9f6e06c237a22715fa4331e">更多...</a><br /></td></tr>
<tr class="separator:a0b678f52f9f6e06c237a22715fa4331e inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a086ae2aee1a4243e68db93ff801018ca inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a086ae2aee1a4243e68db93ff801018ca">setMoveSpeed</a> (double moveSpeed)</td></tr>
<tr class="memdesc:a086ae2aee1a4243e68db93ff801018ca inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体的移动速度  <a href="class_base_object.html#a086ae2aee1a4243e68db93ff801018ca">更多...</a><br /></td></tr>
<tr class="separator:a086ae2aee1a4243e68db93ff801018ca inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39c190a92cdff0b0a0f02b0cb3ee7235 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a39c190a92cdff0b0a0f02b0cb3ee7235">isActorOn</a> (const <a class="el" href="class_actor.html">Actor</a> &amp;actor) const</td></tr>
<tr class="memdesc:a39c190a92cdff0b0a0f02b0cb3ee7235 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">角色是否站在物体上方  <a href="class_base_object.html#a39c190a92cdff0b0a0f02b0cb3ee7235">更多...</a><br /></td></tr>
<tr class="separator:a39c190a92cdff0b0a0f02b0cb3ee7235 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac243a7f83f8a6ac699ba521e9cc136b5 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="ac243a7f83f8a6ac699ba521e9cc136b5" name="ac243a7f83f8a6ac699ba521e9cc136b5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>move</b> ()</td></tr>
<tr class="memdesc:ac243a7f83f8a6ac699ba521e9cc136b5 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动函数，承载角色的逻辑由场景执行 <br /></td></tr>
<tr class="separator:ac243a7f83f8a6ac699ba521e9cc136b5 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c078a1ace9b004fb63a1ce73dd38474 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a9c078a1ace9b004fb63a1ce73dd38474">setPath</a> (const std::vector&lt; PointAndTime &gt; &amp;points)</td></tr>
<tr class="memdesc:a9c078a1ace9b004fb63a1ce73dd38474 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置路径，具有移动功能的类必须调用此函数  <a href="class_base_object.html#a9c078a1ace9b004fb63a1ce73dd38474">更多...</a><br /></td></tr>
<tr class="separator:a9c078a1ace9b004fb63a1ce73dd38474 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ad52a6ad68a6fa37707e4b95da209be inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a9ad52a6ad68a6fa37707e4b95da209be">getId</a> () const</td></tr>
<tr class="memdesc:a9ad52a6ad68a6fa37707e4b95da209be inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体id，方便场景管理  <a href="class_base_object.html#a9ad52a6ad68a6fa37707e4b95da209be">更多...</a><br /></td></tr>
<tr class="separator:a9ad52a6ad68a6fa37707e4b95da209be inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2f96304fd2dfe3bf450c7b63da6b470 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="ad2f96304fd2dfe3bf450c7b63da6b470" name="ad2f96304fd2dfe3bf450c7b63da6b470"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseObject</b> (const <a class="el" href="class_base_object.html">BaseObject</a> &amp;)</td></tr>
<tr class="memdesc:ad2f96304fd2dfe3bf450c7b63da6b470 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">拷贝构造，拷贝的新对象会拥有不同id <br /></td></tr>
<tr class="separator:ad2f96304fd2dfe3bf450c7b63da6b470 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3450a7ef7956a57567ddcd45fab9f533 inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a3450a7ef7956a57567ddcd45fab9f533">setId</a> (const std::string &amp;id_)</td></tr>
<tr class="memdesc:a3450a7ef7956a57567ddcd45fab9f533 inherit pub_methods_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体id，警告，必须保证全局唯一性  <a href="class_base_object.html#a3450a7ef7956a57567ddcd45fab9f533">更多...</a><br /></td></tr>
<tr class="separator:a3450a7ef7956a57567ddcd45fab9f533 inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefa85cf42a5b6864d5c4911694c9b38e inherit pub_methods_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="aefa85cf42a5b6864d5c4911694c9b38e" name="aefa85cf42a5b6864d5c4911694c9b38e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseObject</b> (const <a class="el" href="class_point.html">Point</a> &amp;<a class="el" href="class_base_object.html#ad2b90ee5793b658f19945f5ed8252bfe">pos</a>, double <a class="el" href="class_base_object.html#a345ddf24dd642359b75ec9e8cbec24b2">width</a>, double height, bool <a class="el" href="class_base_object.html#acc5d2f48b26c6fef8d7bcf0c8194c2da">fixed</a>, bool <a class="el" href="class_base_object.html#ad3518dc3b4c964b4aa3417d72cdb2620">can_go_through</a>, bool <a class="el" href="class_base_object.html#aed57694880d2f2f972012200f734f0d4">can_climb</a>)</td></tr>
<tr class="separator:aefa85cf42a5b6864d5c4911694c9b38e inherit pub_methods_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_types_class_base_object"><td colspan="2" onclick="javascript:toggleInherit('pub_types_class_base_object')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="class_base_object.html">BaseObject</a></td></tr>
<tr class="memitem:a7a8f26c8117331663dbe5918c72db344 inherit pub_types_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="a7a8f26c8117331663dbe5918c72db344" name="a7a8f26c8117331663dbe5918c72db344"></a>
typedef std::pair&lt; <a class="el" href="class_point.html">Point</a>, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>PointAndTime</b></td></tr>
<tr class="separator:a7a8f26c8117331663dbe5918c72db344 inherit pub_types_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_base_object"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_base_object')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="class_base_object.html">BaseObject</a></td></tr>
<tr class="memitem:a2fc71ba7e6b9c65e86ef8e44a44cc29f inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="a2fc71ba7e6b9c65e86ef8e44a44cc29f" name="a2fc71ba7e6b9c65e86ef8e44a44cc29f"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>id</b></td></tr>
<tr class="memdesc:a2fc71ba7e6b9c65e86ef8e44a44cc29f inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">物体id，全局唯一 <br /></td></tr>
<tr class="separator:a2fc71ba7e6b9c65e86ef8e44a44cc29f inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ac499b5c6e520eeecdf8e9ae7beae6a inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="a7ac499b5c6e520eeecdf8e9ae7beae6a" name="a7ac499b5c6e520eeecdf8e9ae7beae6a"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>className</b> = &quot;BaseObject&quot;</td></tr>
<tr class="memdesc:a7ac499b5c6e520eeecdf8e9ae7beae6a inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">类名 <br /></td></tr>
<tr class="separator:a7ac499b5c6e520eeecdf8e9ae7beae6a inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2b90ee5793b658f19945f5ed8252bfe inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="ad2b90ee5793b658f19945f5ed8252bfe" name="ad2b90ee5793b658f19945f5ed8252bfe"></a>
<a class="el" href="class_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>pos</b></td></tr>
<tr class="memdesc:ad2b90ee5793b658f19945f5ed8252bfe inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">物体位置 <br /></td></tr>
<tr class="separator:ad2b90ee5793b658f19945f5ed8252bfe inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc5d2f48b26c6fef8d7bcf0c8194c2da inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="acc5d2f48b26c6fef8d7bcf0c8194c2da" name="acc5d2f48b26c6fef8d7bcf0c8194c2da"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>fixed</b></td></tr>
<tr class="memdesc:acc5d2f48b26c6fef8d7bcf0c8194c2da inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否固定物 <br /></td></tr>
<tr class="separator:acc5d2f48b26c6fef8d7bcf0c8194c2da inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a345ddf24dd642359b75ec9e8cbec24b2 inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="a345ddf24dd642359b75ec9e8cbec24b2" name="a345ddf24dd642359b75ec9e8cbec24b2"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>width</b></td></tr>
<tr class="memdesc:a345ddf24dd642359b75ec9e8cbec24b2 inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">物体长宽 <br /></td></tr>
<tr class="separator:a345ddf24dd642359b75ec9e8cbec24b2 inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44bc1715aac8ab06b6965fbe566806e2 inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="a44bc1715aac8ab06b6965fbe566806e2" name="a44bc1715aac8ab06b6965fbe566806e2"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>height</b></td></tr>
<tr class="separator:a44bc1715aac8ab06b6965fbe566806e2 inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3518dc3b4c964b4aa3417d72cdb2620 inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="ad3518dc3b4c964b4aa3417d72cdb2620" name="ad3518dc3b4c964b4aa3417d72cdb2620"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>can_go_through</b></td></tr>
<tr class="memdesc:ad3518dc3b4c964b4aa3417d72cdb2620 inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否可以穿过 <br /></td></tr>
<tr class="separator:ad3518dc3b4c964b4aa3417d72cdb2620 inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed57694880d2f2f972012200f734f0d4 inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="aed57694880d2f2f972012200f734f0d4" name="aed57694880d2f2f972012200f734f0d4"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>can_climb</b></td></tr>
<tr class="memdesc:aed57694880d2f2f972012200f734f0d4 inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否可以攀爬 <br /></td></tr>
<tr class="separator:aed57694880d2f2f972012200f734f0d4 inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6a137a05e4cc941d0d208f7e43d3e55 inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="ae6a137a05e4cc941d0d208f7e43d3e55" name="ae6a137a05e4cc941d0d208f7e43d3e55"></a>
std::deque&lt; PointAndTime &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>path</b></td></tr>
<tr class="memdesc:ae6a137a05e4cc941d0d208f7e43d3e55 inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">可移动物体的移动路径 <br /></td></tr>
<tr class="separator:ae6a137a05e4cc941d0d208f7e43d3e55 inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0a7ee2cbc8d7cf908e511a50b412777 inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="af0a7ee2cbc8d7cf908e511a50b412777" name="af0a7ee2cbc8d7cf908e511a50b412777"></a>
std::deque&lt; PointAndTime &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>pre</b></td></tr>
<tr class="memdesc:af0a7ee2cbc8d7cf908e511a50b412777 inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">当前正在移动的前一个位置和下一个位置,方便move函数使用 <br /></td></tr>
<tr class="separator:af0a7ee2cbc8d7cf908e511a50b412777 inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acade8159e3c1c3e2a84bdc67e9a02976 inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="acade8159e3c1c3e2a84bdc67e9a02976" name="acade8159e3c1c3e2a84bdc67e9a02976"></a>
std::deque&lt; PointAndTime &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>next</b></td></tr>
<tr class="separator:acade8159e3c1c3e2a84bdc67e9a02976 inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acea9e6ec0461a1e4643367f600543be7 inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="acea9e6ec0461a1e4643367f600543be7" name="acea9e6ec0461a1e4643367f600543be7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>waiting_time_remain</b> = 0</td></tr>
<tr class="memdesc:acea9e6ec0461a1e4643367f600543be7 inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动路径点等待时长，单位：帧 <br /></td></tr>
<tr class="separator:acea9e6ec0461a1e4643367f600543be7 inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaad2d283f2c18ec6fa5ca51672971ea inherit pro_attribs_class_base_object"><td class="memItemLeft" align="right" valign="top"><a id="acaad2d283f2c18ec6fa5ca51672971ea" name="acaad2d283f2c18ec6fa5ca51672971ea"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>move_speed</b> {}</td></tr>
<tr class="memdesc:acaad2d283f2c18ec6fa5ca51672971ea inherit pro_attribs_class_base_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动的速度，每帧恒定，单位：像素/帧 <br /></td></tr>
<tr class="separator:acaad2d283f2c18ec6fa5ca51672971ea inherit pro_attribs_class_base_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >后景桥，提供碰撞逻辑但不显示 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ae718c374bfaf9b187fb144e881d50044" name="ae718c374bfaf9b187fb144e881d50044"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae718c374bfaf9b187fb144e881d50044">&#9670;&nbsp;</a></span>draw()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void BehindBridge::draw </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>show_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>供前端使用的绘制函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">show_pos</td><td></td></tr>
    <tr><td class="paramname">window_width</td><td></td></tr>
    <tr><td class="paramname">window_height</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_base_object.html#aea1a2bbace51c82664d5ce64b23d95c3">BaseObject</a>.</p>

</div>
</div>
<a id="aa0cae3abdfc36750b7dca3843f904167" name="aa0cae3abdfc36750b7dca3843f904167"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0cae3abdfc36750b7dca3843f904167">&#9670;&nbsp;</a></span>getClassName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; BehindBridge::getClassName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取类名 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p>重载 <a class="el" href="class_base_object.html#a9764d0d8a511d6d5f68a2d4acc811572">BaseObject</a> .</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Scenes/Objects/<a class="el" href="_behind_bridge_8h_source.html">BehindBridge.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Scenes/Objects/BehindBridge.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
